import java.io.Console;
import java.io.IOException;
import java.util.InputMismatchException;
import java.util.Scanner;

public class Ave4 {
    public static void main(String[] args) {
    	System.out.print("Enter the number:");
        Scanner scanner = new Scanner(System.in);
        double sum = 0;
        int count = 0;
      
        while (true) {
          
            	int number = nextInt();
               
                if (number == 0) {
                    break;
                }
                sum += number;
                count++;
            } 
       
        System.out.printf("Ave %.2f%n", sum / count);
    }

 static Scanner console = new Scanner(System.in);

static int nextInt(){
	String input = console.next();
	while(!input.matches("\\d")){
		System.out.println("Enter the number");
		input = console.next();
		
	}
	return Integer.parseInt(input);
}
}







